package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.model.enums.BaseStatus;
import com.atguigu.lease.model.enums.ReleaseStatus;
import com.atguigu.lease.web.app.vo.room.RoomDetailVo;
import com.atguigu.lease.web.app.vo.room.RoomItemVo;
import com.atguigu.lease.web.app.vo.room.RoomQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    /**
     * 分页查询房间列表
     * 多表联查
     * 设计表：房间、公寓、图片、标签、房间-标签
     * @param page
     * @param queryVo
     */
    Page<RoomItemVo> customSelectList(Page<RoomItemVo> page,@Param("queryVo") RoomQueryVo queryVo);

    /**
     * 根据公寓id分页查询房间列表
     * @param page
     * @param id
     * @return
     */
    Page<RoomItemVo> customSelectListByApartmentId(Page<RoomItemVo> page, Long id);


}